package com.lmf.service;

import com.lmf.config.IndexServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "colony-test",fallback = IndexServiceHystrix.class)
public interface IndexService {

    @GetMapping("/hello/{name}")
    String sayHello(@PathVariable(value = "name")String name);
}
